package com.health.tablebean.webservice;

import android.content.Context;
import android.text.TextUtils;

import com.health.db.FDbManager;
import com.health.tablebean.ARCHIVE_BASEINFO;
import com.health.tablebean.GRAVIDA_BASEINFO;
import com.health.tablebean.GRAVIDA_FIRSTFOLLOWUP;
import com.health.tablebean.GRAVIDA_PRE_ASSISTCHECK;
import com.health.viewscontrols.NovaApplication;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * 第一次产前访视接口参数
 *
 * @author wangxiangyi
 * @date 2018/04/20
 */
public class FirstPrenatalVisit {
    /**
     * 身份证（现做证件号码）
     */
    private String cardid;
    /**
     * 腹部周长的测量值，计量单位为cm
     */
    private String abdomenCircumference;
    /**
     * ABO血型代码:
     * DM01-12_1 A，
     * DM01-12_2 B，
     * DM01-12_3 O，
     * DM01-12_4 AB，
     * DM01-12_5 不详
     */
    private String abo;
    /**
     * 自然流产
     */
    private String abortion;
    /**
     * 附件异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String accompaniment;
    /**
     * 附件异常描述
     */
    private String accompanimentDesc;
    /**
     * 白蛋白浓度（g/L)
     */
    private String alb;
    /**
     * 血淸谷丙转氨酶值（U/L)
     */
    private String alt;
    /**
     * 产前随访记录表单编号
     */
    private String antCardid;
    /**
     * 乙型肝炎病毒核心抗体检测结果代码：
     * DM06-11_1 +，
     * DM06-11_2 -
     */
    private String antiHbCore;
    /**
     * 乙型肝炎病毒表面抗原检测结果代码：
     * DM06-11_1 +，
     * DM06-11_2 -
     */
    private String antiHbSurface;
    /**
     * 乙型肝炎病毒e抗体检测结果代码：
     * DM06-11_1 +，
     * DM06-11_2 -
     */
    private String antiHbe;
    /**
     * HIV抗体检测结果代码：
     * DM06-8_0 阴性，
     * DM06-8_1 阳性
     */
    private String antiHiv;
    /**
     * 乙型肝炎病毒e抗原检测结果代码：
     * DM06-11_1 +，
     * DM06-11_2 -
     */
    private String antigenHbe;
    /**
     * 乙型肝炎病毒表面抗体检测结果代码：
     * DM06-11_1 +，
     * DM06-11_1 -
     */
    private String antigenHbeSurface;
    /**
     * 血淸谷草转氨酶值（U/L)
     */
    private String ast;
    /**
     * 血常规其他
     */
    private String bloodOther;
    /**
     * 血小板计数值（G/L)
     */
    private String bloodPlatelet;
    /**
     * 身高的测量值，计量单位为cm
     */
    private String bodyHeight;
    /**
     * 根据体重：
     * （kg)除以身高平方，
     * （m2)计箅出的指数
     */
    private String bodyMassIndex;
    /**
     * 体重的测量值，计量单位为kg
     */
    private String bodyWeight;
    /**
     * 宫颈异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String cervix;
    /**
     * 宫颈异常描述
     */
    private String cervixDesc;
    /**
     * 剖宫产次数（次）
     */
    private String cesarean;
    /**
     * 血肌酐值(μmol/L)
     */
    private String crea;
    /**
     * 创建机构
     */
    private String createorg;
    /**
     * 创建人
     */
    private String creater;
    /**
     * 创建时间
     */
    private String createtime;
    /**
     * 外阴异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String cunnus;
    /**
     * 外阴异常描述
     */
    private String cunnusDesc;
    /**
     * 舒张压（mm Hg)
     */
    private String dbp;
    /**
     * 死产例数
     */
    private String deathNo;
    /**
     * 出生缺陷儿例数
     */
    private String defectsNo;
    /**
     * 阴道分娩次数（次）
     */
    private String eutocia;
    /**
     * 预产期
     */
    private String expectedDate;
    /**
     * 产次
     */
    private String fetusTimes;
    /**
     * 孕周
     */
    private String gestationWeeks;
    /**
     * 血糖检测值（mmol/I.)
     */
    private String glu;
    /**
     * 孕次
     */
    private String gravidity;
    /**
     * 标识育龄妇女既往是否接受过妇科手术/操作：
     * DM01-11_1 无，
     * DM01-11_2 有
     */
    private String gynecologicOperation;
    /**
     * 对育龄妇女既往接受手术/操作详细情况的描述
     */
    private String gynecologicOperationDesc;
    /**
     * 血红蛋白值（g/L)
     */
    private String haematoglobin;
    /**
     * 转诊原因、转诊机构及科室
     */
    private Rollout hdPersonalRollOut;

    /**
     * 心脏听诊异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String heart;
    /**
     * 心脏听诊异常结果描述
     */
    private String heartDesc;
    /**
     * 血尿素氮检测值（mmol/L)
     */
    private String hematuresis;
    /**
     * 结合胆红素值（μmol/L)
     */
    private String hemobilirubinValue;
    /**
     * 丈夫出生日期
     */
    private String husbandBirthday;
    /**
     * 丈夫姓名
     */
    private String husbandName;
    /**
     * 丈夫电话号码
     */
    private String husbandTel;
    /**
     * 末次月经日期
     */
    private String lastMenstrual;
    /**
     * 末次月经日期明确标志：
     * DM06-2_2 不详，
     * DM06-2_0 明确
     */
    private String lastMenstrualSign;
    /**
     * 肺部听诊异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String lungs;
    /**
     * 肺部听诊异常结果描述
     */
    private String lungsDesc;
    /**
     * 孕产妇健康评估异常结果描述
     */
    private String maternalHealthDesc;
    /**
     * 保健指导：
     * DM06-03_15 生活方式，
     * DM06-03_2 心理，
     * DM06-03_14 营养，
     * DM06-03_4 避免致畸因素和疾病对胚胎的不良影响，
     * DM06-03_5 产前筛查宣传告知，
     * DM06-03_99 其他
     */
    private String maternalHealthGuide;
    /**
     * 保健指导 其他
     */
    private String maternalHealthOther;
    /**
     * 孕产妇健康评估异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String maternalHealthSign;
    /**
     * 新生儿死亡例数
     */
    private String neonatusDeath;
    /**
     * 下次汸视日期
     */
    private String nextVisitDate;
    /**
     * 标记是否转诊：
     * DM01-11_1 无，
     * DM01-11_2 有
     */
    private String res1;
    /**
     * 既往史：
     * DM01-23_1 无，
     * DM01-23_2 心脏病，
     * DM01-23_3 肾脏疾病，
     * DM01-23_4 肝脏疾病，
     * DM01-23_5 高血压，
     * DM01-23_6 贫血，
     * DM01-23_7 糖尿病，
     * DM01-23_8 其他
     */
    private String res2;
    /**
     * 既往史 其他
     */
    private String res3;
    /**
     * 家族史：
     * DM01-24_4 无，
     * DM01-24_1 遗产性疾病史，
     * DM01-24_2 精神疾病史，
     * DM01-24_3 其他
     */
    private String res4;
    /**
     * 家族史 其他
     */
    private String res5;
    /**
     * 个人史：
     * DM01-25_7 无特殊，
     * DM01-25_1 吸烟，
     * DM01-25_2 饮酒，
     * DM01-25_3 服用药物，
     * DM01-25_4 接触有毒有害物质，
     * DM01-25_5 接触放射线，
     * DM01-25_5 其他
     */
    private String res6;
    /**
     * 个人史 其他
     */
    private String res7;
    /**
     * 人工流产
     */
    private String res8;
    /**
     * 其他
     */
    private String res9;
    /**
     * Rh血型代码：
     * DM01-13_1 阴性，
     * DM01-13_2 阳性，
     * DM01-13_3 不详
     */
    private String rh;
    /**
     * 收缩压（mmHg)
     */
    private String sbp;
    /**
     * 死胎例数
     */
    private String stillbirth;
    /**
     * 梅毒血清学试验结果代码：
     * DM06-7_0 阴性，
     * DM06-7_1 阳性
     */
    private String syphilisSerology;
    /**
     * 总胆红素值μmol/L)
     */
    private String totalBilirubin;
    /**
     * B超检查结果
     */
    private String typeBUltrasonic;
    /**
     * 尿酮体定性检测结果代码
     * DM100-38_1 —
     * DM100-38_2 ±
     * DM100-38_3 +
     * DM100-38_4 ++
     * DM100-38_5  +++
     * DM100-38_6  ++++
     */
    private String urineAcetoneValue;
    /**
     * 尿糖定性检测结果代码
     * DM100-38_1 —
     * DM100-38_2 ±
     * DM100-38_3 +
     * DM100-38_4 ++
     * DM100-38_5  +++
     * DM100-38_6  ++++
     */
    private String urineGlucoseValue;
    /**
     * 尿潜血检测结果代码
     * DM100-38_1 —
     * DM100-38_2 ±
     * DM100-38_3 +
     * DM100-38_4 ++
     * DM100-38_5  +++
     * DM100-38_6  ++++
     */
    private String urineOccultBlood;
    /**
     * 尿蛋白定性检测结果代码：
     * DM100-38_1 —
     * DM100-38_2 ±
     * DM100-38_3 +
     * DM100-38_4 ++
     * DM100-38_5  +++
     * DM100-38_6  ++++
     */
    private String urineProteinValue;
    /**
     * 尿常规其他
     */
    private String urineRoutineOther;
    /**
     * 宫体异常标志
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String uterus;
    /**
     * 宫体异常描述
     */
    private String uterusDesc;
    /**
     * 阴道异常标志：
     * DM01-40_1 未见异常，
     * DM01-40_2 异常
     */
    private String vagina;
    /**
     * 阴道异常描述
     */
    private String vaginaDesc;
    /**
     * 阴道分泌物检查结果代码：
     * DM06-01_1 未见异常，
     * DM06-01_2 滴虫，
     * DM06-01_3 假丝酵母菌，
     * DM06-01_9 其他
     */
    private String vaginalFluid;
    /**
     * 阴道分泌物淸洁度代码
     */
    private String vaginalFluidCleanliness;
    /**
     * 阴道分泌物其他
     */
    private String vaginalFluidOther;
    /**
     * 填表日期
     */
    private String visitDate;
    /**
     * 访视医师姓名
     */
    private String visitDoctorName;
    /**
     * 随访次数， 1 产前第一次随访 2~5 分别表示产前第2次到第5次随访
     */
    private String visitTimes;
    /**
     * 白细胞计数值（G/L)
     */
    private String wbcCount;

    public String getCardid() {
        return cardid;
    }

    public void setCardid(String cardid) {
        this.cardid = cardid;
    }

    public String getAbdomenCircumference() {
        return abdomenCircumference;
    }

    public void setAbdomenCircumference(String abdomenCircumference) {
        this.abdomenCircumference = abdomenCircumference;
    }

    public String getAbo() {
        return abo;
    }

    public void setAbo(String abo) {
        this.abo = abo;
    }

    public String getAbortion() {
        return abortion;
    }

    public void setAbortion(String abortion) {
        this.abortion = abortion;
    }

    public String getAccompaniment() {
        return accompaniment;
    }

    public void setAccompaniment(String accompaniment) {
        this.accompaniment = accompaniment;
    }

    public String getAccompanimentDesc() {
        return accompanimentDesc;
    }

    public void setAccompanimentDesc(String accompanimentDesc) {
        this.accompanimentDesc = accompanimentDesc;
    }

    public String getAlb() {
        return alb;
    }

    public void setAlb(String alb) {
        this.alb = alb;
    }

    public String getAlt() {
        return alt;
    }

    public void setAlt(String alt) {
        this.alt = alt;
    }

    public String getAntCardid() {
        return antCardid;
    }

    public void setAntCardid(String antCardid) {
        this.antCardid = antCardid;
    }

    public String getAntiHbCore() {
        return antiHbCore;
    }

    public void setAntiHbCore(String antiHbCore) {
        this.antiHbCore = antiHbCore;
    }

    public String getAntiHbSurface() {
        return antiHbSurface;
    }

    public void setAntiHbSurface(String antiHbSurface) {
        this.antiHbSurface = antiHbSurface;
    }

    public String getAntiHbe() {
        return antiHbe;
    }

    public void setAntiHbe(String antiHbe) {
        this.antiHbe = antiHbe;
    }

    public String getAntiHiv() {
        return antiHiv;
    }

    public void setAntiHiv(String antiHiv) {
        this.antiHiv = antiHiv;
    }

    public String getAntigenHbe() {
        return antigenHbe;
    }

    public void setAntigenHbe(String antigenHbe) {
        this.antigenHbe = antigenHbe;
    }

    public String getAntigenHbeSurface() {
        return antigenHbeSurface;
    }

    public void setAntigenHbeSurface(String antigenHbeSurface) {
        this.antigenHbeSurface = antigenHbeSurface;
    }

    public String getAst() {
        return ast;
    }

    public void setAst(String ast) {
        this.ast = ast;
    }

    public String getBloodOther() {
        return bloodOther;
    }

    public void setBloodOther(String bloodOther) {
        this.bloodOther = bloodOther;
    }

    public String getBloodPlatelet() {
        return bloodPlatelet;
    }

    public void setBloodPlatelet(String bloodPlatelet) {
        this.bloodPlatelet = bloodPlatelet;
    }

    public String getBodyHeight() {
        return bodyHeight;
    }

    public void setBodyHeight(String bodyHeight) {
        this.bodyHeight = bodyHeight;
    }

    public String getBodyMassIndex() {
        return bodyMassIndex;
    }

    public void setBodyMassIndex(String bodyMassIndex) {
        this.bodyMassIndex = bodyMassIndex;
    }

    public String getBodyWeight() {
        return bodyWeight;
    }

    public void setBodyWeight(String bodyWeight) {
        this.bodyWeight = bodyWeight;
    }

    public String getCervix() {
        return cervix;
    }

    public void setCervix(String cervix) {
        this.cervix = cervix;
    }

    public String getCervixDesc() {
        return cervixDesc;
    }

    public void setCervixDesc(String cervixDesc) {
        this.cervixDesc = cervixDesc;
    }

    public String getCesarean() {
        return cesarean;
    }

    public void setCesarean(String cesarean) {
        this.cesarean = cesarean;
    }

    public String getCrea() {
        return crea;
    }

    public void setCrea(String crea) {
        this.crea = crea;
    }

    public String getCreateorg() {
        return createorg;
    }

    public void setCreateorg(String createorg) {
        this.createorg = createorg;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getCunnus() {
        return cunnus;
    }

    public void setCunnus(String cunnus) {
        this.cunnus = cunnus;
    }

    public String getCunnusDesc() {
        return cunnusDesc;
    }

    public void setCunnusDesc(String cunnusDesc) {
        this.cunnusDesc = cunnusDesc;
    }

    public String getDbp() {
        return dbp;
    }

    public void setDbp(String dbp) {
        this.dbp = dbp;
    }

    public String getDeathNo() {
        return deathNo;
    }

    public void setDeathNo(String deathNo) {
        this.deathNo = deathNo;
    }

    public String getDefectsNo() {
        return defectsNo;
    }

    public void setDefectsNo(String defectsNo) {
        this.defectsNo = defectsNo;
    }

    public String getEutocia() {
        return eutocia;
    }

    public void setEutocia(String eutocia) {
        this.eutocia = eutocia;
    }

    public String getExpectedDate() {
        return expectedDate;
    }

    public void setExpectedDate(String expectedDate) {
        this.expectedDate = expectedDate;
    }

    public String getFetusTimes() {
        return fetusTimes;
    }

    public void setFetusTimes(String fetusTimes) {
        this.fetusTimes = fetusTimes;
    }

    public String getGestationWeeks() {
        return gestationWeeks;
    }

    public void setGestationWeeks(String gestationWeeks) {
        this.gestationWeeks = gestationWeeks;
    }

    public String getGlu() {
        return glu;
    }

    public void setGlu(String glu) {
        this.glu = glu;
    }

    public String getGravidity() {
        return gravidity;
    }

    public void setGravidity(String gravidity) {
        this.gravidity = gravidity;
    }

    public String getGynecologicOperation() {
        return gynecologicOperation;
    }

    public void setGynecologicOperation(String gynecologicOperation) {
        this.gynecologicOperation = gynecologicOperation;
    }

    public String getGynecologicOperationDesc() {
        return gynecologicOperationDesc;
    }

    public void setGynecologicOperationDesc(String gynecologicOperationDesc) {
        this.gynecologicOperationDesc = gynecologicOperationDesc;
    }

    public String getHaematoglobin() {
        return haematoglobin;
    }

    public void setHaematoglobin(String haematoglobin) {
        this.haematoglobin = haematoglobin;
    }

    public Rollout getHdPersonalRollOut() {
        return hdPersonalRollOut;
    }

    public void setHdPersonalRollOut(Rollout hdPersonalRollOut) {
        this.hdPersonalRollOut = hdPersonalRollOut;
    }

    public String getHeart() {
        return heart;
    }

    public void setHeart(String heart) {
        this.heart = heart;
    }

    public String getHeartDesc() {
        return heartDesc;
    }

    public void setHeartDesc(String heartDesc) {
        this.heartDesc = heartDesc;
    }

    public String getHematuresis() {
        return hematuresis;
    }

    public void setHematuresis(String hematuresis) {
        this.hematuresis = hematuresis;
    }

    public String getHemobilirubinValue() {
        return hemobilirubinValue;
    }

    public void setHemobilirubinValue(String hemobilirubinValue) {
        this.hemobilirubinValue = hemobilirubinValue;
    }

    public String getHusbandBirthday() {
        return husbandBirthday;
    }

    public void setHusbandBirthday(String husbandBirthday) {
        this.husbandBirthday = husbandBirthday;
    }

    public String getHusbandName() {
        return husbandName;
    }

    public void setHusbandName(String husbandName) {
        this.husbandName = husbandName;
    }

    public String getHusbandTel() {
        return husbandTel;
    }

    public void setHusbandTel(String husbandTel) {
        this.husbandTel = husbandTel;
    }

    public String getLastMenstrual() {
        return lastMenstrual;
    }

    public void setLastMenstrual(String lastMenstrual) {
        this.lastMenstrual = lastMenstrual;
    }

    public String getLastMenstrualSign() {
        return lastMenstrualSign;
    }

    public void setLastMenstrualSign(String lastMenstrualSign) {
        this.lastMenstrualSign = lastMenstrualSign;
    }

    public String getLungs() {
        return lungs;
    }

    public void setLungs(String lungs) {
        this.lungs = lungs;
    }

    public String getLungsDesc() {
        return lungsDesc;
    }

    public void setLungsDesc(String lungsDesc) {
        this.lungsDesc = lungsDesc;
    }

    public String getMaternalHealthDesc() {
        return maternalHealthDesc;
    }

    public void setMaternalHealthDesc(String maternalHealthDesc) {
        this.maternalHealthDesc = maternalHealthDesc;
    }

    public String getMaternalHealthGuide() {
        return maternalHealthGuide;
    }

    public void setMaternalHealthGuide(String maternalHealthGuide) {
        this.maternalHealthGuide = maternalHealthGuide;
    }

    public String getMaternalHealthOther() {
        return maternalHealthOther;
    }

    public void setMaternalHealthOther(String maternalHealthOther) {
        this.maternalHealthOther = maternalHealthOther;
    }

    public String getMaternalHealthSign() {
        return maternalHealthSign;
    }

    public void setMaternalHealthSign(String maternalHealthSign) {
        this.maternalHealthSign = maternalHealthSign;
    }

    public String getNeonatusDeath() {
        return neonatusDeath;
    }

    public void setNeonatusDeath(String neonatusDeath) {
        this.neonatusDeath = neonatusDeath;
    }

    public String getNextVisitDate() {
        return nextVisitDate;
    }

    public void setNextVisitDate(String nextVisitDate) {
        this.nextVisitDate = nextVisitDate;
    }

    public String getRes1() {
        return res1;
    }

    public void setRes1(String res1) {
        this.res1 = res1;
    }

    public String getRes2() {
        return res2;
    }

    public void setRes2(String res2) {
        this.res2 = res2;
    }

    public String getRes3() {
        return res3;
    }

    public void setRes3(String res3) {
        this.res3 = res3;
    }

    public String getRes4() {
        return res4;
    }

    public void setRes4(String res4) {
        this.res4 = res4;
    }

    public String getRes5() {
        return res5;
    }

    public void setRes5(String res5) {
        this.res5 = res5;
    }

    public String getRes6() {
        return res6;
    }

    public void setRes6(String res6) {
        this.res6 = res6;
    }

    public String getRes7() {
        return res7;
    }

    public void setRes7(String res7) {
        this.res7 = res7;
    }

    public String getRes8() {
        return res8;
    }

    public void setRes8(String res8) {
        this.res8 = res8;
    }

    public String getRes9() {
        return res9;
    }

    public void setRes9(String res9) {
        this.res9 = res9;
    }

    public String getRh() {
        return rh;
    }

    public void setRh(String rh) {
        this.rh = rh;
    }

    public String getSbp() {
        return sbp;
    }

    public void setSbp(String sbp) {
        this.sbp = sbp;
    }

    public String getStillbirth() {
        return stillbirth;
    }

    public void setStillbirth(String stillbirth) {
        this.stillbirth = stillbirth;
    }

    public String getSyphilisSerology() {
        return syphilisSerology;
    }

    public void setSyphilisSerology(String syphilisSerology) {
        this.syphilisSerology = syphilisSerology;
    }

    public String getTotalBilirubin() {
        return totalBilirubin;
    }

    public void setTotalBilirubin(String totalBilirubin) {
        this.totalBilirubin = totalBilirubin;
    }

    public String getTypeBUltrasonic() {
        return typeBUltrasonic;
    }

    public void setTypeBUltrasonic(String typeBUltrasonic) {
        this.typeBUltrasonic = typeBUltrasonic;
    }

    public String getUrineAcetoneValue() {
        return urineAcetoneValue;
    }

    public void setUrineAcetoneValue(String urineAcetoneValue) {
        this.urineAcetoneValue = urineAcetoneValue;
    }

    public String getUrineGlucoseValue() {
        return urineGlucoseValue;
    }

    public void setUrineGlucoseValue(String urineGlucoseValue) {
        this.urineGlucoseValue = urineGlucoseValue;
    }

    public String getUrineOccultBlood() {
        return urineOccultBlood;
    }

    public void setUrineOccultBlood(String urineOccultBlood) {
        this.urineOccultBlood = urineOccultBlood;
    }

    public String getUrineProteinValue() {
        return urineProteinValue;
    }

    public void setUrineProteinValue(String urineProteinValue) {
        this.urineProteinValue = urineProteinValue;
    }

    public String getUrineRoutineOther() {
        return urineRoutineOther;
    }

    public void setUrineRoutineOther(String urineRoutineOther) {
        this.urineRoutineOther = urineRoutineOther;
    }

    public String getUterus() {
        return uterus;
    }

    public void setUterus(String uterus) {
        this.uterus = uterus;
    }

    public String getUterusDesc() {
        return uterusDesc;
    }

    public void setUterusDesc(String uterusDesc) {
        this.uterusDesc = uterusDesc;
    }

    public String getVagina() {
        return vagina;
    }

    public void setVagina(String vagina) {
        this.vagina = vagina;
    }

    public String getVaginaDesc() {
        return vaginaDesc;
    }

    public void setVaginaDesc(String vaginaDesc) {
        this.vaginaDesc = vaginaDesc;
    }

    public String getVaginalFluid() {
        return vaginalFluid;
    }

    public void setVaginalFluid(String vaginalFluid) {
        this.vaginalFluid = vaginalFluid;
    }

    public String getVaginalFluidCleanliness() {
        return vaginalFluidCleanliness;
    }

    public void setVaginalFluidCleanliness(String vaginalFluidCleanliness) {
        this.vaginalFluidCleanliness = vaginalFluidCleanliness;
    }

    public String getVaginalFluidOther() {
        return vaginalFluidOther;
    }

    public void setVaginalFluidOther(String vaginalFluidOther) {
        this.vaginalFluidOther = vaginalFluidOther;
    }

    public String getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(String visitDate) {
        this.visitDate = visitDate;
    }

    public String getVisitDoctorName() {
        return visitDoctorName;
    }

    public void setVisitDoctorName(String visitDoctorName) {
        this.visitDoctorName = visitDoctorName;
    }

    public String getVisitTimes() {
        return visitTimes;
    }

    public void setVisitTimes(String visitTimes) {
        this.visitTimes = visitTimes;
    }

    public String getWbcCount() {
        return wbcCount;
    }

    public void setWbcCount(String wbcCount) {
        this.wbcCount = wbcCount;
    }

    /**
     * 第一次产前访视接口参数
     *
     * @param context 上下文
     * @return
     */
    public static List<FirstPrenatalVisit> convertData(Context context) {
        List<FirstPrenatalVisit> datas = new ArrayList<>();

        FDbManager fdb = FDbManager.getInstance(context);
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        if (null == NovaApplication.getUserInfo()) {
            return datas;
        }
        List<GRAVIDA_FIRSTFOLLOWUP> infos = fdb.findAllByWhere(GRAVIDA_FIRSTFOLLOWUP.class,
                "IDCARD='" + NovaApplication.getUserInfo().getIDCARD() + "'");

        if (infos != null && !infos.isEmpty()) {
            for (GRAVIDA_FIRSTFOLLOWUP info : infos) {
                FirstPrenatalVisit firstPrenatalVisit = new FirstPrenatalVisit();
                /*查询档案编号*/
                List<ARCHIVE_BASEINFO> baseinfos = fdb.findAllByWhere(ARCHIVE_BASEINFO.class,
                        "IDCARD ='" + info.getIDCARD() + "'");
                /*设置档案编号*/
                if (null != baseinfos && baseinfos.size() > 0) {
                    firstPrenatalVisit.setAntCardid(baseinfos.get(0).getARCHIVEID());
                } else {
                    firstPrenatalVisit.setAntCardid("");
                }
                /*孕妇产前随访次数*/
                firstPrenatalVisit.setVisitTimes("1");
                /*身份证号*/
                firstPrenatalVisit.setCardid(TextUtils.isEmpty(info.getIDCARD()) ? "" : info.getIDCARD().toUpperCase());
                /*填表日期*/
                if (info.getRECORD_DATE() != null) {
                    firstPrenatalVisit.setVisitDate(formatter.format(info.getRECORD_DATE()));
                }
                /*填写孕周*/
                firstPrenatalVisit.setGestationWeeks(TextUtils.isEmpty(info.getPREGANCY_WEEKS()) ? "" : info.getPREGANCY_WEEKS());
                /*丈夫姓名*/
                firstPrenatalVisit.setHusbandName(TextUtils.isEmpty(info.getHUSBAND_NAME()) ? "" : info.getHUSBAND_NAME());
                /*丈夫年龄*/
                firstPrenatalVisit.setHusbandBirthday(TextUtils.isEmpty(info.getHUSBAND_AGE()) ? "" : info.getHUSBAND_AGE());
                /*丈夫电话*/
                firstPrenatalVisit.setHusbandTel(TextUtils.isEmpty(info.getHUSBAND_PHONE()) ? "" : info.getHUSBAND_PHONE());
                /*孕次*/
                firstPrenatalVisit.setGravidity(TextUtils.isEmpty(info.getPREGANCY_COUNT()) ? "" : info.getPREGANCY_COUNT());
                /*获取孕妇基本信息*/
                List<GRAVIDA_BASEINFO> gradicas = fdb.findAllByWhere(GRAVIDA_BASEINFO.class,
                        "IDCARD = '" + info.getIDCARD() + "'");
                if (gradicas.size() > 0) {
                    /*产次*/
                    firstPrenatalVisit.setFetusTimes(TextUtils.isEmpty(gradicas.get(0).getFetusTimes()) ? "" : gradicas.get(0).getFetusTimes());
                }
                /*产次：阴道分娩次数*/
                firstPrenatalVisit.setEutocia(TextUtils.isEmpty(info.getNATRUALCHILDBIRTHCOUNT()) ? "" : info.getNATRUALCHILDBIRTHCOUNT());
                /*产次：剖宫产*/
                firstPrenatalVisit.setCesarean(TextUtils.isEmpty(info.getCAESAREANCOUNT()) ? "" : info.getCAESAREANCOUNT());
                /*末次月经*/
                firstPrenatalVisit.setLastMenstrualSign(TextUtils.isEmpty(info.getLASTMENSTRUATION()) ? "" : info.getLASTMENSTRUATION());
                /*末次月经日期*/
                if (info.getLASTMENSTRUATION_DATE() != null) {
                    firstPrenatalVisit.setLastMenstrual(formatter.format(info.getLASTMENSTRUATION_DATE()));
                }
                /*预产期*/
                if (info.getEXPECTEDDUE_DATE() != null) {
                    firstPrenatalVisit.setExpectedDate(formatter.format(info.getEXPECTEDDUE_DATE()));
                }
                /*既往史*/
                firstPrenatalVisit.setRes2(TextUtils.isEmpty(info.getCUSTOMERHISTORY()) ? "" : info.getCUSTOMERHISTORY());
                /*既往史其他*/
                firstPrenatalVisit.setRes3(TextUtils.isEmpty(info.getCUSTOMERHISTORY_EX()) ? "" : info.getCUSTOMERHISTORY_EX());
                /*家族史*/
                firstPrenatalVisit.setRes4(TextUtils.isEmpty(info.getFAMILYHISTORY()) ? "" : info.getFAMILYHISTORY());
                /*家族史其他*/
                firstPrenatalVisit.setRes5(TextUtils.isEmpty(info.getFAMILYHISTORY_EX()) ? "" : info.getFAMILYHISTORY_EX());
                /*个人史*/
                firstPrenatalVisit.setRes6(TextUtils.isEmpty(info.getPERSONALHISTORY()) ? "" : info.getPERSONALHISTORY());
                /*个人史其他*/
                firstPrenatalVisit.setRes7(TextUtils.isEmpty(info.getPERSONALHISTORY_EX()) ? "" : info.getPERSONALHISTORY_EX());
                /*妇科手术史*/
                firstPrenatalVisit.setGynecologicOperation(TextUtils.isEmpty(info.getGYNECOLOGYHISTORY()) ? "" : info.getGYNECOLOGYHISTORY());
                /*妇科手术史其他*/
                firstPrenatalVisit.setGynecologicOperationDesc(TextUtils.isEmpty(info.getGYNECOLOGYHISTORY_EX()) ? "" : info.getGYNECOLOGYHISTORY_EX());
                /*孕产史：1自然流产*/
                firstPrenatalVisit.setAbortion(TextUtils.isEmpty(info.getABORTIONINFO()) ? "" : info.getABORTIONINFO());
                /*孕产史：2人工流产*/
                firstPrenatalVisit.setRes8(TextUtils.isEmpty(info.getInducedABORTIONINFO()) ? "" : info.getInducedABORTIONINFO());
                /*孕产史：3死胎*/
                firstPrenatalVisit.setStillbirth(TextUtils.isEmpty(info.getDEADFETUS()) ? "" : info.getDEADFETUS());
                /*孕产史：4死产*/
                firstPrenatalVisit.setDeathNo(TextUtils.isEmpty(info.getSTILLBIRTHINFO()) ? "" : info.getSTILLBIRTHINFO());
                /*孕产史：5新生儿死亡*/
                firstPrenatalVisit.setNeonatusDeath(TextUtils.isEmpty(info.getNEWBORNDEAD()) ? "" : info.getNEWBORNDEAD());
                /*孕产史：6出生缺陷儿*/
                firstPrenatalVisit.setDefectsNo(TextUtils.isEmpty(info.getNEWBORNDEFECT()) ? "" : info.getNEWBORNDEFECT());
                /*身高*/
                firstPrenatalVisit.setBodyHeight(TextUtils.isEmpty(info.getHEIGHT()) ? "" : info.getHEIGHT());
                /*体重*/
                firstPrenatalVisit.setBodyWeight(TextUtils.isEmpty(info.getWEIGHT()) ? "" : info.getWEIGHT());
                /*体质指数*/
                firstPrenatalVisit.setBodyMassIndex(TextUtils.isEmpty(info.getBMI()) ? "" : info.getBMI());
                /*收缩血压*/
                firstPrenatalVisit.setSbp(TextUtils.isEmpty(info.getHBLOODPRESSURE()) ? "" : info.getHBLOODPRESSURE());
                /*舒长血压*/
                firstPrenatalVisit.setDbp(TextUtils.isEmpty(info.getLBLOODPRESSURE()) ? "" : info.getLBLOODPRESSURE());
                /*听诊：心脏*/
                firstPrenatalVisit.setHeart(TextUtils.isEmpty(info.getHEART()) ? "" : info.getHEART());
                /*听诊：心脏异常*/
                firstPrenatalVisit.setHeartDesc(TextUtils.isEmpty(info.getHEART_EX()) ? "" : info.getHEART_EX());
                /*听诊：肺部*/
                firstPrenatalVisit.setLungs(TextUtils.isEmpty(info.getLUNG()) ? "" : info.getLUNG());
                /*听诊：肺部异常*/
                firstPrenatalVisit.setLungsDesc(TextUtils.isEmpty(info.getLUNG_EX()) ? "" : info.getLUNG_EX());
                /*妇科信息：外阴*/
                firstPrenatalVisit.setCunnus(TextUtils.isEmpty(info.getVULVA()) ? "" : info.getVULVA());
                /*妇科信息：外阴异常*/
                firstPrenatalVisit.setCunnusDesc(TextUtils.isEmpty(info.getVULVA_EX()) ? "" : info.getVULVA_EX());
                /*妇科信息：阴道*/
                firstPrenatalVisit.setVagina(TextUtils.isEmpty(info.getVAGINA()) ? "" : info.getVAGINA());
                /*妇科信息：阴道异常*/
                firstPrenatalVisit.setVaginaDesc(TextUtils.isEmpty(info.getVAGINA_EX()) ? "" : info.getVAGINA_EX());
                /*妇科信息：宫颈*/
                firstPrenatalVisit.setCervix(TextUtils.isEmpty(info.getCERVIXUTERI()) ? "" : info.getCERVIXUTERI());
                /*妇科信息：宫颈异常*/
                firstPrenatalVisit.setCervixDesc(TextUtils.isEmpty(info.getCERVIXUTERI_EX()) ? "" : info.getCERVIXUTERI_EX());
                /*妇科信息：子宫*/
                firstPrenatalVisit.setUterus(TextUtils.isEmpty(info.getCORPUS()) ? "" : info.getCORPUS());
                /*妇科信息：子宫异常*/
                firstPrenatalVisit.setUterusDesc(TextUtils.isEmpty(info.getCORPUS_EX()) ? "" : info.getCORPUS_EX());
                /*妇科信息：附件*/
                firstPrenatalVisit.setAccompaniment(TextUtils.isEmpty(info.getATTACH()) ? "" : info.getATTACH());
                /*妇科信息：附件异常*/
                firstPrenatalVisit.setAccompanimentDesc(TextUtils.isEmpty(info.getATTACH_EX()) ? "" : info.getATTACH_EX());
                /*妇科辅助检查*/
                /*获取妇科辅助检查数据*/
                List<GRAVIDA_PRE_ASSISTCHECK> info1 = fdb.findAllByWhere(GRAVIDA_PRE_ASSISTCHECK.class,
                        "IDCARD='" + info.getIDCARD() + "'");
                if (infos != null && !infos.isEmpty()) {
                    for (GRAVIDA_PRE_ASSISTCHECK itemInfos : info1) {
                        /*血常规：血红蛋白值*/
                        firstPrenatalVisit.setHaematoglobin(TextUtils.isEmpty(itemInfos.getHB()) ? "" : itemInfos.getHB());
                        /*血常规：白细胞计数值*/
                        firstPrenatalVisit.setWbcCount(TextUtils.isEmpty(itemInfos.getWBC()) ? "" : itemInfos.getWBC());
                        /*血常规：血小板计数值*/
                        firstPrenatalVisit.setBloodPlatelet(TextUtils.isEmpty(itemInfos.getPLT()) ? "" : itemInfos.getPLT());
                        /*血常规：其他*/
                        firstPrenatalVisit.setBloodOther(TextUtils.isEmpty(itemInfos.getBLOOD_OTHER()) ? "" : itemInfos.getBLOOD_OTHER());
                        /*尿常规：尿蛋白*/
                        firstPrenatalVisit.setUrineProteinValue(TextUtils.isEmpty(itemInfos.getPRO()) ? "" : itemInfos.getPRO());
                        /*尿常规：尿糖*/
                        firstPrenatalVisit.setUrineGlucoseValue(TextUtils.isEmpty(itemInfos.getGLU()) ? "" : itemInfos.getGLU());
                        /*尿常规：尿酮体*/
                        firstPrenatalVisit.setUrineAcetoneValue(TextUtils.isEmpty(itemInfos.getKET()) ? "" : itemInfos.getKET());
                        /*尿常规：尿潜血*/
                        firstPrenatalVisit.setUrineOccultBlood(TextUtils.isEmpty(itemInfos.getBLD()) ? "" : itemInfos.getBLD());
                        /*尿常规其他*/
                        firstPrenatalVisit.setUrineRoutineOther(TextUtils.isEmpty(itemInfos.getURINE_OTHERS()) ? "" : itemInfos.getURINE_OTHERS());
                        /*血型*/
                        firstPrenatalVisit.setAbo(TextUtils.isEmpty(itemInfos.getBLOODTYPE()) ? "" : itemInfos.getBLOODTYPE());
                        /*Rh*阴性*/
                        firstPrenatalVisit.setRh(TextUtils.isEmpty(itemInfos.getRH()) ? "" : itemInfos.getRH());
                        /*血糖*/
                        firstPrenatalVisit.setGlu(TextUtils.isEmpty(itemInfos.getFPGL()) ? "" : itemInfos.getFPGL());
                        /*肝功能：血清谷丙转氨酶*/
                        firstPrenatalVisit.setAlt(TextUtils.isEmpty(itemInfos.getSGPT()) ? "" : itemInfos.getSGPT());
                        /*肝功能：血清谷草丙转氨酶*/
                        firstPrenatalVisit.setAst(TextUtils.isEmpty(itemInfos.getGOT()) ? "" : itemInfos.getGOT());
                        /*肝功能：白蛋白*/
                        firstPrenatalVisit.setAlb(TextUtils.isEmpty(itemInfos.getBP()) ? "" : itemInfos.getBP());
                        /*肝功能：总胆红素*/
                        firstPrenatalVisit.setTotalBilirubin(TextUtils.isEmpty(itemInfos.getTBIL()) ? "" : itemInfos.getTBIL());
                        /*肝功能：结合胆红素*/
                        firstPrenatalVisit.setHemobilirubinValue(TextUtils.isEmpty(itemInfos.getCB()) ? "" : itemInfos.getCB());
                        /*肾功能：血清肌酐*/
                        firstPrenatalVisit.setCrea(TextUtils.isEmpty(itemInfos.getSCR()) ? "" : itemInfos.getSCR());
                        /*肾功能：尿血素氮*/
                        firstPrenatalVisit.setHematuresis(TextUtils.isEmpty(itemInfos.getBUN()) ? "" : itemInfos.getBUN());
                        /*阴道分泌物*/
                        firstPrenatalVisit.setVaginalFluid(TextUtils.isEmpty(itemInfos.getVAGINALSECRETIONS()) ? "" : itemInfos.getVAGINALSECRETIONS());
                        /*阴道清洁度*/
                        firstPrenatalVisit.setVaginalFluidCleanliness(TextUtils.isEmpty(itemInfos.getVAGINALCLEAESS()) ? "" : itemInfos.getVAGINALCLEAESS());
                        /*乙型肝炎五项：乙型肝炎表面抗原 */
                        firstPrenatalVisit.setAntiHbSurface(TextUtils.isEmpty(itemInfos.getHBSAG()) ? "" : itemInfos.getHBSAG());
                        /*乙型肝炎五项：  乙型肝炎表面抗体 */
                        firstPrenatalVisit.setAntigenHbeSurface(TextUtils.isEmpty(itemInfos.getHBSAB()) ? "" : itemInfos.getHBSAB());
                        /*乙型肝炎五项：乙型肝炎e抗原  */
                        firstPrenatalVisit.setAntigenHbe(TextUtils.isEmpty(itemInfos.getHBEAG()) ? "" : itemInfos.getHBEAG());
                        /*乙型肝炎五项：乙型肝炎e抗体 */
                        firstPrenatalVisit.setAntiHbe(TextUtils.isEmpty(itemInfos.getHBEAB()) ? "" : itemInfos.getHBEAB());
                        /*乙型肝炎五项：乙型肝炎核心抗体 * */
                        firstPrenatalVisit.setAntiHbCore(TextUtils.isEmpty(itemInfos.getHBCAB()) ? "" : itemInfos.getHBCAB());
                        /*梅毒血清学试验*/
                        firstPrenatalVisit.setSyphilisSerology(TextUtils.isEmpty(itemInfos.getLUES()) ? "" : itemInfos.getLUES());
                        /*HIV抗体检测*/
                        firstPrenatalVisit.setAntiHiv(TextUtils.isEmpty(itemInfos.getHIV()) ? "" : itemInfos.getHIV());
                        /*B超*/
                        firstPrenatalVisit.setTypeBUltrasonic(TextUtils.isEmpty(itemInfos.getBCHAO()) ? "" : itemInfos.getBCHAO());
                        /*其他*/
                        firstPrenatalVisit.setRes9(TextUtils.isEmpty(itemInfos.getQTHAO()) ? "" : itemInfos.getQTHAO());
                    }
                }
                /*总体评估*/
                firstPrenatalVisit.setMaternalHealthSign(TextUtils.isEmpty(info.getOVERALASSESSMENT()) ? "" : info.getOVERALASSESSMENT());
                /*总体评估其他*/
                firstPrenatalVisit.setMaternalHealthDesc(TextUtils.isEmpty(info.getOVERALASSESSMENT_EX()) ? "" : info.getOVERALASSESSMENT_EX());
                /*保健指导*/
                firstPrenatalVisit.setMaternalHealthGuide(TextUtils.isEmpty(info.getHEALTHZHIDAO()) ? "" : info.getHEALTHZHIDAO());
                /*保健指导其他*/
                firstPrenatalVisit.setMaternalHealthOther(TextUtils.isEmpty(info.getHEALTHZHIDAOOTHERS()) ? "" : info.getHEALTHZHIDAOOTHERS());
                /*转诊*/
                firstPrenatalVisit.setRes1(TextUtils.isEmpty(info.getREFERRAL()) ? "" : info.getREFERRAL());
                /*转诊原因、机构及科室*/
                Rollout rollOut = new Rollout();
                rollOut.setHpc(info.getREFERRALREASON());
                rollOut.setRollInRegion(info.getREFERRALORG());
                firstPrenatalVisit.setHdPersonalRollOut(rollOut);
                /*下次随访时间*/
                if (info.getNEXTFOLLOWUP_DATE() != null) {
                    firstPrenatalVisit.setNextVisitDate(formatter.format(info.getNEXTFOLLOWUP_DATE()));
                }
                /*随访医生签名*/
                firstPrenatalVisit.setVisitDoctorName(TextUtils.isEmpty(info.getFOLLOWUPDOCTOR()) ? "" : info.getFOLLOWUPDOCTOR());
                /*创建人*/
                firstPrenatalVisit.setCreater(TextUtils.isEmpty(info.getCREATER()) ? "" : info.getCREATER());
                /*创建机构*/
                firstPrenatalVisit.setCreateorg(TextUtils.isEmpty(info.getCREATEORG()) ? "" : info.getCREATEORG());
                /*添加list里面*/
                datas.add(firstPrenatalVisit);
            }
        }
        return datas;
    }
}